package com.ruoyi.word.service;

import com.ruoyi.common.domain.word.CommonWord;
import com.ruoyi.common.domain.word.vo.CommonWordSysVocabularyVo;
import com.ruoyi.common.domain.word.vo.CommonWordVo;
import com.ruoyi.common.domain.word.vo.CommonWordVocabularyVo;

import java.util.List;

public interface ICommonWordService {

    int saveOrUpdate(CommonWord word);

    CommonWord findWordByWid(Long wid);

    List<CommonWord> findByWhereStr(String whereStr, String orderField, String order);

    CommonWord findByWord(String word);

    CommonWord findById(Long id);

    int save(CommonWord record);

    int update(CommonWord record);

    int updateByPrimaryKeySelective(CommonWord record);

    int delete(Long id);

    List<CommonWordVocabularyVo> findByWhereStrWord(String whereStr, String orderField, String order, Long vocabularyId);

    List<CommonWordSysVocabularyVo> findByWhereStrWithId (String whereStr, String orderField, String order);

    List<CommonWord> findByWhereStrWithUserVocId(String whereStr, String orderField, String order);

    List<CommonWord> findFiveAndFiveWords();

    List<CommonWord> findBySysId(Long sysId);

    CommonWordVo findByIdVo(Long id);

    List<CommonWord> findByWrongPronounce();
}
